package com.translate.web.param;

import java.math.BigDecimal;

import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.NotNull;

import com.translate.web.param.contract.IWithdrawalAddParam;


public class WithdrawalAddParam implements IWithdrawalAddParam {
	
	// 用户id
	private long userId;

	private String userName;
	
	// 提现金额
	@NotNull
	@DecimalMin(value = "0.01", message = "最低提现金额为0.01")
	private BigDecimal amount;

	public long getUserId() {
		return userId;
	}

	public void setUserId(long userId) {
		this.userId = userId;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName == null ? null : userName.trim();
	}

	public BigDecimal getAmount() {
		return amount;
	}

	public void setAmount(BigDecimal amount) {
		this.amount = amount;
	}


}